package com.github.pig.admin.service.repair.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.pig.admin.mapper.repair.RepairRecordMapper;
import com.github.pig.admin.model.repair.RepairRecord;
import com.github.pig.admin.model.repair.RepairRecordWhere;
import com.github.pig.admin.service.repair.IRepairRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 报修记录表 服务实现类
 * </p>
 *
 * @author lxm
 * @since 2018-06-27
 */
@Service
public class RepairRecordServiceImpl extends ServiceImpl<RepairRecordMapper, RepairRecord> implements IRepairRecordService {

    @Autowired
    private RepairRecordMapper repairRecordMapper;
    @Override
    public Page selectRepairCordDataGrid(Page<RepairRecord> page, RepairRecordWhere repairRecordWhere) {
        List<RepairRecord> list = repairRecordMapper.selectRepairCordDataGrid(page,repairRecordWhere);
        page.setRecords(list);
        return  page;
    }
}
